package cn.ipokerface.api.annotation;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by       PokerFace
 * Create Date      2019-12-11.
 * Email:           <a href="mailto:214888341@163.com">214888341@163.com</a>
 * Version          1.0.0
 * <p>
 * Description:
 */




@Target({ElementType.METHOD, ElementType.FIELD })
@Retention(RUNTIME)
@Documented
@Repeatable(ApiEnum.class)
public @interface ApiEnumValue {

    /**
     * Define a enum value of enum
     * usage:
     * <code>@ApiEnum(value={@ApiEnumValue(key="state", name="状态"),...})</code>
     *
     *
     */
    String key();

    /**
     *
     * {@link ApiEnumValue#key()}
     */
    String name();

}
